package com.sun.dubbo.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import com.sun.dubbo.bean.UserAddress;
import com.sun.dubbo.service.IOrderService;

@Controller
public class OrderController {
	@Autowired
	private IOrderService  orderService;
	
	@ResponseBody
	@RequestMapping("/order/init")
	public List<UserAddress> initOrder() {
		return orderService.initOrder(1l);
	}
}
